package com.example.demoserver.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Easettke
 * @version 1.0
 * @date 2019/8/4 23:13
 */
@RestController
public class HelloController {

    @GetMapping("/index")
    public String hello(@RequestParam String name) {
        return "hello:" + name + "how are you";
    }
}
